using SmartWMS.Domain.Base;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SmartWMS.Domain.BasicsDatum
{
    /// <summary>
    /// 仓库表
    /// </summary>
    public class Warehouse : KeyEntity
    {

        /// <summary>
        /// 仓库编号
        /// </summary>
        public string? WarehouseCode { get; set; }

        /// <summary>
        /// 仓库名称
        /// </summary>
        public string? Name { get; set; }

        /// <summary>
        /// 租赁时间
        /// </summary>
        public DateTime LleaseTime { get; set; } = DateTime.Now;

        /// <summary>
        /// 仓库类型
        /// </summary>
        public string? WarehouseType { get; set; }

        /// <summary>
        /// 是否禁用
        /// </summary>
        public bool IsDisable { get; set; } = false;

        /// <summary>
        /// 是否默认
        /// </summary>
        public bool IsDefault { get; set; } = false;

        /// <summary>
        /// 地址
        /// </summary>
        [MaxLength(200)]
        public string? Address { get; set; }

        /// <summary>
        /// 面积
        /// </summary>
        public int Area { get; set; }

        /// <summary>
        /// 联系人
        /// </summary>
        public string? Contacts { get; set; }

        /// <summary>
        /// 电话
        /// </summary>
        public string? Phone { get; set; }

        /// <summary>
        /// 仓库用途
        /// </summary>
        [MaxLength(200)]
        public string? Usage { get; set; }


    }
}
